package com.hnkywl.sts.quartz;

import com.hnkywl.sts.dao.base.ZddxDao;
import com.hnkywl.sts.service.base.DxpzService;
import com.hnkywl.sts.service.taskdeal.DoSendZddx;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.sql.SQLException;
import java.util.List;

/**
 * 自动发送短信job
 * Created with IntelliJ IDEA.
 * User: xx
 * Date: 13-6-19
 * Time: 下午11:48
 * To change this template use File | Settings | File Templates.
 */
public class ZddxJob extends QuartzJobBean {
    // 定义日志
    private static Log log = LogFactory.getLog(PlanImprtJob.class);

    DoSendZddx doSendZddx;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("自动发送短信job 开始执行............");
        doSendZddx.manageSms();
        log.info("自动发送短信job 执行结束............");
    }

    public void setDoSendZddx(DoSendZddx doSendZddx) {
        this.doSendZddx = doSendZddx;
    }
}
